#pragma once

#include "Task.h"
#include "TcpConnection.h"

class RegisterGetcrypt:public Task{
public: 
RegisterGetcrypt(const string msg, TcpConnectionPtr conn);
void process();
private:
std::string trim(const string &str);
bool parseAuthString(const string &input, string & username,
                     string & salt, string &crypt);
private:
    const string _msg;
    TcpConnectionPtr _conn;
};

